home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / USEFUL_C / CINSTANC.H < prev    next >
Text File  |  1990-04-28  |  975b  |  36 lines

  1. /****************************************************************************
  2.  *
  3.  * FILE:    CInstance.h
  4.  * CREA:    Sven Axelsson, GU
  5.  * MODF:    mîndag 16 april 1990 @ 10.52.00
  6.  * HIST:    90-04-16 (1.1)    Provide optional file name in Init method.
  7.  *                            Removed the version parameter in Read- and
  8.  *                            Write calls.
  9.  *            90-04-12 (1.0)    First version.
  10.  *
  11.  ****************************************************************************/
  12.  
  13. # define    _H_CInstance
  14.  
  15.  
  16. struct CInstance : indirect
  17. {
  18.     Str27        folder_name;
  19.     Str27        file_name;
  20.     ResType        type;
  21.     ResType        creator;
  22.     short        folder_vref;
  23.     short        file_ref;
  24.     Boolean        created;
  25.     
  26.     CInstance    *Init( ResType, Str255 );
  27.     short        GetOID( ResType );
  28.     OSErr        Open( void );
  29.     OSErr        Close( void );
  30.     OSErr        ReadObj( ResType, short, short *, Boolean, void * );
  31.     OSErr        WriteObj( ResType, short, short, Boolean, void * );
  32.     OSErr        ReadRes( ResType, short, Handle );
  33.     OSErr        WriteRes( ResType, short *, Handle );
  34.     OSErr        Delete( ResType, short );
  35. };
  36.